SHELL=/bin/bash
CXX=g++
CXXFLAGS=-fPIC -Wall -Winline -g -O2 -D_FILE_OFFSET_BITS=64

TARGET=hz

OBJS= hz.o \
			bwt.o \

INCPATH=-I. -I ../include -I../../include
all:$(TARGET)
	@echo make all
$(TARGET):$(OBJS)
	@echo make target
	$(CXX) $(CXXFLAGS) $(INCPATH) $^ -o $@ 
%.o:%.cpp
	@echo compiling $<
	$(CXX) $(CXXFLAGS) $(INCPATH) -c $< 
.PHONY install:
install:
.PHONY test:
test:
	cat /dev/null > dst
	time ./hz -v -e -i src -o dst
	cat /dev/null > tmp
	time ./hz -v -d -i dst -o tmp
	ls -l src dst
	diff src tmp > result
.PHONY clean:
clean:
	@echo make clean
	-rm -f $(OBJS) $(TARGET) src dst tmp result
